<div class="productlist">
<?php // Vars: $productPager
    use_helper('AddToCart');
    echo $productPager->renderNavigationTop();

    echo _open('ul');

    foreach ($productPager as $product) {
        echo _open('li');
        echo _open('div.productthumb');
        echo _tag('div.bigthumbbtn',_link($product)->set('.blkbtn')->text('Big View Both Side'));
        echo _link($product)->set('.imgfl')->text(_media($product->Image)->size(182, 230));
         echo _close('div');
        echo _open('div.productinfo');
        echo _tag('div',_tag('label','Code').$product->item_code);
        echo _tag('div',_tag('label','Item').($product).' , '.$product->ProductCategory);
        
         echo  _tag('div',$product->description);

        echo _open('div');
        echo _tag('label','Available Size ');
        $sizes = array();
        foreach ($product->ProductSizeList as $size) {
           $sizes[$size->position] = $size->name;
        }
        ksort($sizes);
        echo implode(', ', $sizes);
        echo _close('div');
        echo _open('div');
        echo _tag('label','Available Color ');
        $colors = array();
        foreach ($product->ProductColorList as $color) {
            $colors[] = $color->name;
        }
        sort($colors);
        echo implode(', ', $colors);
        echo _close('div');

        echo _tag('div',_tag('label','Price Rate ').$product->price);
        echo _tag('div',_tag('label','Offer ').$product->product_gift_id);

        echo _close('div');
        echo _tag('div.clear');
        echo _open('div.addcartform');
        ?>
    <form onSubmit="" method="post" action="<?php echo _link('customarOrder/addToCart')->getHref()?>">
                <label for="order">Order : </label>

                  <label for="size">size</label>
                  <select name="size" id="size">
                    <?php  foreach ($sizes  as $size) :?>
                      <option value="<?php echo $size?>"><?php echo $size?></option>
                    <?php endforeach;?>
                  </select>
                  <label for="size">Color</label>
                  <select name="color" id="size">
                    <?php foreach ($product->ProductColorList as $color):?>
                      <option value="<?php echo $color?>"><?php echo $color?></option>
                    <?php endforeach;?>
                  </select>
                  <label for="qty">Qty</label>
                  <input type="text" name="qty" id="qty">
                  <input type="hidden" value="<?php echo $product->id?>" name="product_id">
                  <input class="addcartsubmit" type="submit" id="button" value="Keep In Order Busket ">
         </form>
  <?php
        echo _close('div');
        echo _tag('div.clear');
        echo _close('li');
    }

    echo _close('ul');

    echo $productPager->renderNavigationBottom();
    ?>
</div>